import java.awt.*;

import javax.swing.*;

public class Brik
{
	public static void main(String[] args)
	{
		//add a name and version to the app
		JFrame frame = new JFrame("B.r.i.k  v0.1");
	//	frame.setSize(640,480);
	//	frame.setPreferredSize(new Dimension(1024, 720));
		//ss
		frame.getContentPane().add(new BrikPanel());
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//Add a logo to the app
		frame.setIconImage(Toolkit.getDefaultToolkit().getImage("imgs/logoicon.png"));
		frame.pack();
		frame.setResizable(false);
		
		// Display the window in the center of the screen.
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		Dimension windowSize = frame.getSize();
		frame.setLocation(Math.max(0, (screenSize.width - windowSize.width) / 2),
				Math.max(0, (screenSize.height - windowSize.height) / 2));
		
		frame.setVisible(true);
	}
}